
package com.scalar.chiptrack.operations;


public final class LotReservation {

    private int m_lineItemNumber = -1;
    private int m_salesOrderId = -1;
    private String m_lotNumber = null;
    private int m_lotQuantity = 0;
    private String m_expectedDateOut = null;
    private String m_processStepTypeName = null;
    private String m_reservedBy = null;
    private String m_dateReserved = null;
    
    public LotReservation (int lineItemNumber, 
                             int salesOrderId, 
                             String lotNumber, 
                             int lotQuantity, 
                             String expectedDateOut, 
                             String processStepTypeName,
                             String reservedBy,
                             String dateReserved) {
                                 
        m_lineItemNumber = lineItemNumber;
        m_salesOrderId = salesOrderId;
        m_lotNumber = lotNumber;
        m_lotQuantity = lotQuantity;
        m_expectedDateOut = expectedDateOut;
        m_processStepTypeName = processStepTypeName;
        m_reservedBy = reservedBy;
        m_dateReserved = dateReserved;
    }
    
    
    public int getLineItemNumber() {
        return m_lineItemNumber;
    }
    public void setLineItemNumber (int lineItemNumber) {
        m_lineItemNumber = lineItemNumber;
    }
    
    public int getSalesOrderId() {
        return m_salesOrderId;
    }
    public void setSalesOrderId (int salesOrderId) {
        m_salesOrderId = salesOrderId;
    }
    
    public String getLotNumber() {
        return m_lotNumber;
    }
    public void setLotNumber (String lotNumber) {
        m_lotNumber = lotNumber;
    }
    
    public int getLotQuantity() {
        return m_lotQuantity;
    }
    public void setLotQuantity (int lotQuantity) {
        m_lotQuantity = lotQuantity;
    }
    
    public String getExpectedDateOut() {
        return m_expectedDateOut;
    }
    public void setExpectedDateOut (String expectedDateOut) {
        m_expectedDateOut = expectedDateOut;
    }
    
    public String getProcessStepTypeName() {
        return m_processStepTypeName;
    }
    public void setProcessStepTypeName (String processStepTypeName) {
        m_processStepTypeName = processStepTypeName;
    }
    
    public String getReservedBy() {
        return m_reservedBy;
    }
    public void setReservedBy (String reservedBy) {
        m_reservedBy = reservedBy;
    }
    
    public String getDateReserved() {
        return m_dateReserved;
    }
    public void setDateReserved (String dateReserved) {
        m_dateReserved = dateReserved;
    }
    
    
    public String toString() {
        
        StringBuffer buf = new StringBuffer();
        
        buf.append ("LineItem No: ").append (m_lineItemNumber).append (", SalesOrder No: ").append (m_salesOrderId);
        buf.append ("\nLot Number: ").append (m_lotNumber).append (", Lot Quantity: ").append (m_lotQuantity);
        buf.append ("\nExp Date Out: ").append (m_expectedDateOut).append (", PS Name: ").append (m_processStepTypeName);
        buf.append ("\nReserved By: ").append (m_reservedBy).append (", Reserved On: ").append (m_dateReserved);
        
        return buf.toString();
    }
    
    
}